<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title th:replace="${title}">博客详情</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/typo.css" th:href="@{/css/typo.css}">
    <link rel="stylesheet" href="../static/css/animate.css" th:href="@{/css/animate.css}">
    <link rel="stylesheet" href="../static/lib/prism/prism.css" th:href="@{/lib/prism/prism.css}">
    <link rel="stylesheet" href="../static/lib/tocbot/tocbot.css" th:href="@{/lib/tocbot/tocbot.css}">
    <link rel="stylesheet" href="../static/css/myCSS.css" th:href="@{/css/myCSS.css}">
</head>
<body>

<!--导航-->
<nav th:fragment="menu(n)" class="ui inverted attached segment m-padded-tb-mini m-opacity-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <a th:href="@{/}" href="#"><h2 class="ui teal header item">LeeBlog</h2></a>
            <a th:href="@{/}" href="#" class="m-item item m-mobile-hide" th:classappend="${n==1} ? 'active'"><i class="home icon"></i>首页</a>
            <a th:href="@{/type/-1/1}" href="#" class="m-item item m-mobile-hide" th:classappend="${n==2} ? 'active'"><i class="idea icon"></i>分类</a>
            <a th:href="@{/tag/-1/1}" href="#" class="m-item item m-mobile-hide" th:classappend="${n==3} ? 'active'"><i class="tags icon"></i>标签</a>
            <a th:href="@{/leeBlog/archives}" href="#" class="m-item item m-mobile-hide" th:classappend="${n==4} ? 'active'"><i class="clone icon"></i>归档</a>
            <a th:href="@{/leeBlog/about}" href="#" class="m-item item m-mobile-hide" th:classappend="${n==5} ? 'active'"><i class="info icon"></i>关于我</a>
            <div class="m-item right item m-mobile-hide">
                <form name="search" action="#" th:action="@{/leeBlog/{current}/search(current=1)}" target="_blank" method="post">
                    <div class="ui large icon inverted transparent input">
                        <input type="text" name="query" placeholder="Search...." th:value="${query}">
                        <i onclick="document.forms['search'].submit()" class="search link icon"></i>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-mobile-show m-right-top">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--底部-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive m-opacity-mini">
    <div class="ui center aligned container">
        <div class="ui inverted stackable divided grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/weChat.jpg" th:src="@{/images/weChat.jpg}" class="ui rounded image" alt="" style="width: 120px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-lined m-text-spaced">最新博客</h4>
                <div id="newblog-container">
                    <div class="ui inverted link list" th:fragment="newbloglist">
                        <a href="#" th:href="@{/leeBlog/blog/{id}(id=${blog.id})}" target="_blank" class="m-text-lined m-text-spaced m-text-thin m-opacity-mini item" th:each="blog : ${newblogs}" th:text="${blog.title}">用户故事（User Story）</a>
                        <!--/*-->
                        <a href="#" class="m-text-lined m-text-spaced m-text-thin m-opacity-mini item">用户故事（User Story）</a>
                        <a href="#" class="m-text-lined m-text-spaced m-text-thin m-opacity-mini item">用户故事（User Story）</a>
                        <!--*/-->
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-lined m-text-spaced">联系我</h4>
                <div class="ui inverted link list">
                    <a href="mailto:2519294308@qq.com"  class="m-text-lined m-text-spaced m-text-thin m-opacity-mini item"><span th:text="#{index.email}">email</span></a>
                    <a target="_blank" class="m-text-lined m-text-spaced m-text-thin m-opacity-mini item" href="http://wpa.qq.com/msgrd?v=3&uin=2519294308&site=qq&menu=yes">QQ:<span th:text="#{index.qq}">qq</span></a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-lined m-text-spaced">LeeBlog</h4>
                <p class="m-text-lined m-text-spaced m-text-thin m-opacity-mini">这是我的个人博客，会分享关于编程，写作，思考相关的任何内容，希望可以给来到这儿的人有所帮助</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-lined m-text-spaced m-text-thin m-opacity-tiny">Copyright © 2020-2021 LeeBlog Designed by Tristen</p>
        <a href="http://beian.miit.gov.cn/" class="m-text-lined m-text-spaced m-text-thin m-opacity-tiny">陕ICP备2020017679号-1</a>
    </div>
</footer>

<th:block th:fragment="script">
    <script src="../static/js/jquery-3.5.1.min.js" th:src="@{/js/jquery-3.5.1.min.js}"></script>
    <script src="../static/lib/prism/prism.js" th:src="@{/lib/prism/prism.js}"></script>
    <script src="../static/lib/tocbot/tocbot.min.js" th:src="@{/lib/tocbot/tocbot.min.js}"></script>
    <script src="../static/lib/qrcode/qrcode.min.js" th:src="@{/lib/qrcode/qrcode.min.js}"></script>
    <script src="../static/lib/fleser/jquery.scrollTo.min.js" th:src="@{/lib/fleser/jquery.scrollTo.min.js}"></script>
    <script src="../static/lib/waypoint/jquery.waypoints.min.js" th:src="@{/lib/waypoint/jquery.waypoints.min.js}"></script>
    <link rel="stylesheet" src="../../static/lib/editormd/css/editormd.min.css" th:src="@{/lib/editormd/css/editormd.min.css}">
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <script src="../../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
    <script>
        $('#newblog-container').load(/*[[@{/footer/blogs}]]*/"/footer/blogs");
    </script>
</th:block>

</body>
</html>